import javax.swing.JFrame;


public class Application extends JFrame{
	/**
	 * 
	 */
	private static Application app;
	private static final long serialVersionUID = -2517616123689799182L;
	private static StateManager stateManager;
	private GameThread gameThread;
	public Application(){
		super("Phage Wars");
		stateManager = new StateManager(this);
		stateManager.changeState(new MainMenu());
		//getContentPane().add(new State());
		setSize(640, 480);
		//pack();
		setVisible(true);
		setResizable(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		gameThread = new GameThread();
		
	}
	public static void main(String args[]){
		app = new Application();
	}
	public static StateManager getStateManager(){
		return stateManager;
	}
	public static Application getApp(){
		return app;
	}
}
